<?php
//http://t.evolution.com/controller/detail/controller/update_publish_status.php?nid=3702&status=0
//需要参数nid，确定哪条数据
//status，是发布状态用的代码
//返回0则是失败，返回1就是修改成功。

include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");



$_p['nid']        =$_REQUEST['nid'];
$_p['ai_publish'] =$_REQUEST['status'];

//print_r2($_p);

$sqlstr = update_date($table_prefix."group",$_p,"nid",$_p['nid']);



$query = do_query($sqlstr) or die (mysqli_error());


    if($query)
    {
        $result['error'] = "0";
        $result['info'] = mysqli_error();
        $result['sql'] = $sqlstr;
    }
    else
    {
        $result['error'] = "1";
    }

    echo json_encode($result);
    exit;
?>


